package com.example.springmybatis.service;

import com.example.springmybatis.entity.Videos;
import com.example.springmybatis.entity.Videoscategory;
import com.example.springmybatis.entity.feature;
import com.example.springmybatis.entity.medal;
import com.example.springmybatis.mapper.Featuremapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Featureservice {
    @Resource
    private Featuremapper featuremapper;

    public List<feature> getfeature(){
        List<feature> features=featuremapper.findall();
        return features;
    }
    public List<medal> getmedal(){
        List<medal> medals=featuremapper.findmedalall();
        return  medals;
    }
    public List<feature> getfeatures(){
        List<feature> features=featuremapper.findfeatures();
        return features;
    }
    public List<Videos> getVideos(){
        List<Videos> Videos=featuremapper.findVideo();
        return Videos;
    }
    public List<Videoscategory> getCategory(){
        List<Videoscategory> videoscategories=featuremapper.findCategory();
        return videoscategories;
    }
}
